@import '@/styles/utils.scss';

.container {
  display: flex;
  align-items: center;
}

.settingsButton {
  all: unset;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202124;
  transition: all 0.2s ease;
  
  svg {
    width: 20px;
    height: 20px;
  }

  &:hover {
    background-color: #F4F4F5;
  }

  :global(.dark) & {
    color: #A1A1AA;

    &:hover {
      background-color: #3F3F46;
    }
  }
}

.settingsPanel {
  margin-bottom: 4px;
  margin-top: 26px;
  margin-left: -35px;
  position: relative;
  min-width: 206px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
  animation: slideIn 0.2s ease-out;
  z-index: 1000;
  padding: 8px 4px;
  
  :global(.dark) & {
    background-color: #48494C;
    color: #FFFFFF;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  }
}

.settingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid #DEDEDE;
  padding: 10px 16px;
  
  h2 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    
    :global(.dark) & {
      color: #FFFFFF;
    }
  }
}

.closeButton {
  all: unset;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color:#BDBDBD;
  transition: all 0.2s ease;
  
  &:hover {
    background-color: #F4F4F5;
    color: #333;
  }
  
  :global(.dark) & {
    color: #A1A1AA;
    
    &:hover {
      background-color: #3F3F46;
      color: #FFFFFF;
    }
  }
}

.settingsContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

.settingsItem {
  &.disabled {
    opacity: 0.5;
  }
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px;
  margin: 0 -10px;
  border-radius: 4px;
  min-height: 32px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
  &:hover {
    background-color: #F4F4F5;
  }
  
  :global(.dark) & {
    &:hover {
      background-color: #56575A;
    }
  }
}

.settingsLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  
  
  svg {
    width: 16px;
    height: 16px;
    color: #71717A;
  }
  
  span {
    font-size: 14px;
  }
  
  :global(.dark) & {
    color: #FFFFFF;
    
    svg {
      color: #A1A1AA;
    }
  }
}

.selectTrigger {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 14px;
  height: 32px;
  gap: 8px;
  color: #333;
  cursor: pointer;
  min-width: 100px;
  
  
  &:hover {
    background-color: #F4F4F5;
  }
  
  :global(.dark) & {
    color: #FFFFFF;
    
    &:hover {
      background-color: #3F3F46;
    }
  }
}

.selectContent {
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  
  :global(.dark) & {
    background-color: #27272A;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  }
}

.selectItem {
  font-size: 14px;
  color: #333;
  border-radius: 3px;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px 0 24px;
  position: relative;
  user-select: none;
  cursor: pointer;
  
  
  &[data-highlighted] {
    outline: none;
    background-color: #F4F4F5;
  }
  
  &[data-state="checked"] {
    font-weight: 500;
  }
  
  :global(.dark) & {
    color: #FFFFFF;
    
    &[data-highlighted] {
      background-color: #3F3F46;
    }
  }
}

.selectItemIndicator {
  position: absolute;
  left: 0;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3B82F6;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.button2 {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: #F3F3F3;
  color: #000;

  width: 32px;
  height: 32px;
  border-radius: 8px;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }


  &:not(:disabled):hover {
    background: #E1E1E1;
  }

  :global(.dark) & {
    background: transparent;
    border: 1px solid #3F4245;

    svg {
      color: #C4C4C4;
    }

    &:not(:disabled):hover {
      background: transparent;
    }
  }
}

.plus {
  transition: all 0.3s;
}

.plusActive {
  transition: all 0.3s;
  transform: rotate(45deg);
}